package com.tingyuge.base.structrue.quene;

/**
 * @Created by xiaodao
 */
public class LyQueue<T> {
    private T[] data;
    private int front;
    private int tail;

    public LyQueue(int size) {
        this.data = (T[])new Object[size];
    }

    public LyQueue(){
        this(5);
    }

    public void add(T t){
        data[tail+1]=t;
    }

    private void resize(int size){
        if(tail+1%data.length == front){
//            tail%data.length
        }
    }
}
